import sqlCommonColumn from 'src/common/sqlCommonColumn';
import { Column, Entity } from 'typeorm';

@Entity()
export class commentEntity extends sqlCommonColumn {
  @Column({ comment: '回复评论id',nullable:true })
  reply_comment_id: number;

  @Column({ comment: '回复根评论id',nullable:true,default:null })
  reply_root_comment_id: number;

  @Column({ comment: '评论内容' })
  Content: string;

  @Column({ comment: '评论点赞数',default:0 })
  goods: number;
  @Column({ comment: '文章id',default:null})
  info_id: number;
  @Column({ comment: '作者是否置顶',default:false})
  is_author_top: boolean;
  @Column({ comment: '用户id' })
  user_id: number;

}
